/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package utn.tsb.tej.comunications.client;

import java.io.IOException;
import java.net.Proxy;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.logging.Level;
import java.util.logging.Logger;
import utn.tsb.tej.comunications.Preferences;

/**
 *
 * @author Carlos S. Moreno <CarlosS.Moreno@gmail.com>
 */
public class ThreadJoiningGame extends Thread {

    Socket socket;
    String address;

    public ThreadJoiningGame(String name, String address)
    {
        super(name); 
        this.address = address;
    }

    public void run ()
    {
        try {
            socket = new Socket(address, Preferences.getPort());



        } catch (UnknownHostException ex) {
            Logger.getLogger(ThreadJoiningGame.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(ThreadJoiningGame.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

}
